package com.icongyou.enterprise.talent_marking.controller;

import com.icongyou.enterprise.common.result.Result;
import com.icongyou.enterprise.talent_marking.entity.vo.ChangeDetailVO;
import com.icongyou.enterprise.talent_marking.service.PerformanceChangesService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/performance")
public class PerformanceChangesController {
    @Resource
    private PerformanceChangesService performanceChangesService;
    @GetMapping("/changes")
    public Result<List<ChangeDetailVO>> getRecentChanges(){
        return performanceChangesService.getRecentChanges();
    }
}
